package cn.kgc.shiro02.shiro;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/4/4
 * @Description:
 */
public class RedisCacheManager implements CacheManager {
    @Override
    public <K, V> Cache<K, V> getCache(String s) throws CacheException {
        // 缓存的名字  认证缓存  authentication  授权缓存     authorization
        return new RedisCache(s);
    }
}
